/** 文档管理模块 */
let documentManage = [
  // 通用工艺文件管理
  {
    path: '/generalProcessDoc',
    name: 'generalProcessDoc',
    component(resolve) {
      require(['../view/documentManage/documentManage/generalProcessDoc/GeneralProcessDoc'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'generalProcessDoc',
      subMenu: 'documentManage',
      rootDir: 'documentManage',
      title: '通用工艺文件管理'
    }
  },
  // 专用工艺文件管理
  {
    path: '/dedicatedProcessDoc',
    name: 'dedicatedProcessDoc',
    component(resolve) {
      require(['../view/documentManage/documentManage/dedicatedProcessDoc/DedicatedProcessDoc'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'dedicatedProcessDoc',
      subMenu: 'documentManage',
      rootDir: 'documentManage',
      title: '专用工艺文件管理'
    }
  },
  // 设备相关文档
  {
    path: '/deviceDoc',
    name: 'deviceDoc',
    component(resolve) {
      require(['../view/documentManage/documentManage/deviceDoc/DeviceDoc'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceDoc',
      subMenu: 'documentManage',
      rootDir: 'documentManage',
      title: '设备相关文档'
    }
  },
  // 其他文档
  {
    path: '/otherDoc',
    name: 'otherDoc',
    component(resolve) {
      require(['../view/documentManage/documentManage/otherDoc/OtherDoc'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'otherDoc',
      subMenu: 'documentManage',
      rootDir: 'documentManage',
      title: '其他文档'
    }
  }
]

export default documentManage
